package com.supplychain.scm.core.framework.chain.decorator;

import com.supplychain.scm.core.framework.chain.base.AbstractChain;
import lombok.RequiredArgsConstructor;

/**
 * @author liyang
 * @version 1.0.0
 * @ClassName AbstractDecoratorChain
 * @Description 抽象的职责链装饰器
 * @createTime 09:56:00 2022/10/15
 */
@RequiredArgsConstructor
public abstract class AbstractDecoratorChain<T,R> extends AbstractChain<T,R> {

	private final AbstractChain abstractChain;

	@Override
	public R chainHandler(T t) {
		return (R) abstractChain.chainHandler(t);
	}
}
